//
//  TWConst.swift
//  EyepetizerImitative
//
//  Created by 田伟 on 2017/3/9.
//  Copyright © 2017年 个人. All rights reserved.
//  定义常量的类

import UIKit

// MARK:- 系统常量
let NavigationBarHeight : CGFloat = 64
let TabBarHeight : CGFloat = 49
let BatteryHeight : CGFloat = 20                                        // 电池栏的高度
let TWScreenWidth : CGFloat = UIScreen.main.bounds.width
let TWScreenHeight : CGFloat = UIScreen.main.bounds.height


// MARK:- 自定义常量
let CustemHeaderViewHeight : CGFloat = 250                              // 自定义首页头部视图的高度
let refreshingOffset : CGFloat = 40                                     // 滚动偏移量超过40px就刷新
let DiscovertitleViewHeight : CGFloat = 40                              // 发现页面的标题栏高度
let VideoCellHeight : CGFloat = UIScreen.main.bounds.width * 720 / 1242
let VideoCollectionCellHeight : CGFloat = VideoCellHeight + (TWScreenWidth * 2 / 3) * 720 / 1242 + 15 + 30
let headerFooterCellHeight : CGFloat = 40
let squareCardCollectionViewHeight = UIScreen.main.bounds.width / 2.2
let squareCardCellHeight = squareCardCollectionViewHeight + 50
let collectionCellWidth = UIScreen.main.bounds.width * 720 / 1242       // 240
let collectionCellHeight = collectionCellWidth * 720 / 1242 + 50        // 189.13
let videoCollectionWithBriefCellHeight = collectionCellHeight + 60 + 10  // 259.13
let videoCollectionOfHorizontalScrollCardCellHeight = VideoCellHeight + 20      // 上下各有5px的边
let TextCardHeight : CGFloat = 40
let BriefCardHeight : CGFloat = 60
let BlankCardHeight : CGFloat = 15
let AuthorHeaderViewHeight : CGFloat = 190
let ThemeHeaderViewHeight : CGFloat = 275

let viewAnimationTime : TimeInterval = 0.25



// MARK:- 匹配首页cell样式的常量
let horizontalScrollCard : String = "horizontalScrollCard"                          // 循环视图
let textFooter : String = "textFooter"                                              // 脚部
let textHeader : String = "textHeader"                                              // 表头
let banner : String = "banner"                                                      // 仅仅一张可点击的图片
let video : String = "video"                                                        // 视频
let ActionCard : String = "ActionCard"                                              // 显示更多
let videoCollectionWithCover : String = "videoCollectionWithCover"                  // 集合视图分2部分：上面一个header，是一张图片，下面是横向的集合，里面都是完整的video,最后一个是查看全部
let videoCollectionOfFollow : String = "videoCollectionOfFollow"                    // 集合视图分2部分：上面一个header，header里面有几张小图，下面是横向的集合，里面都是完整的video
let squareCardCollection : String = "squareCardCollection"                          // 集合视图分2部分：上面一个header，header里面就是一个标题，下面是横向的集合，里面是类似专题的图片
let videoCollectionOfAuthorWithCover : String = "videoCollectionOfAuthorWithCover"  // 集合视图分2部分：上面一个header，header里面有几张小图，还有一个按钮，下面是横向的集合，里面都是完整的video
let VideoBeanForClient : String = "VideoBeanForClient"                              // 集合视图中的视频
let TextCard : String = "textCard"                                                  // 相当于标题
let BriefCard : String = "briefCard"                                                // 相当于系统的cell样式
let BlankCard : String = "blankCard"                                                // 一个间隙大小


// cell的ID
let VideoCell : String = "videoCell"
let BannerCell : String = "bannerCell"
let FooterCell : String = "footerCell"
let HeaderCell : String = "headerCell"
let ItemCollectionCell : String = "itemCollectionCell"
let HorizontalScrollCardCell : String = "TWHorizontalScrollCardCell"
let VideoCollectionOfFollowCell : String = "videoCollectionOfFollowCell"
let SquareCardCollectionViewCell : String = "squareCardCollectionViewCell"
let SquareCardTableViewCell : String = "squareCardTableViewCell"
let VideoCollectionOfAuthorWithCoverCell : String = "videoCollectionOfAuthorWithCoverCell"
let CorrelationCell : String = "correlationCell"
let CorrelationCollectionCell : String = "correlationCollectionCell"
let DetailCollectionViewCell : String = "detailCollectionViewCell"
let VideoCollectionWithBrief : String = "videoCollectionWithBrief"
let VideoCollectionOfHorizontalScrollCard : String = "videoCollectionOfHorizontalScrollCard"
let TextCardCell : String = "textCardCell"                                                              // 相当于标题
let BriefCardCell : String = "briefCardCell"                                                            // 相当于系统的cell样式
let BlankCardCell : String = "blankCardCell"                                                            // 一个间隙大小
let AllCategoriesSquareCardCell : String = "allCategoriesSquareCardCell"
let AllCategoriesRectangleCardCell : String = "allCategoriesRectangleCardCell"

// MARK:- 网址
//  欢迎页
let WelcomeUrlString: String = "https://baobab.kaiyanapp.com/api/v2/configs?_s=f0a0bc20acf254c8c28708fc947d9d8d&f=iphone&model=iPhone%206s%20Plus&net=wifi&p_product=EYEPETIZER_IOS&u=27e73f129dc6a90ed0b2da2cb1c8b3d14829761d&v=3.3.0&vc=2412"
// 主页请求网络地址
let ChoicenessUrlString: String = "https://baobab.kaiyanapp.com/api/v4/tabs/selected?_s=3d878d5c1141e7dea3e8b36e1d399a85&f=iphone&net=wifi&p_product=EYEPETIZER_IOS&u=27e73f129dc6a90ed0b2da2cb1c8b3d14829761d&v=3.3.0&vc=2412"
// 发现页面网址
let DiscoverUrlString : String = "https://baobab.kaiyanapp.com/api/v4/discovery?_s=6f7c077b6805ec9c35b804a2b7fb45de&f=iphone&net=wifi&p_product=EYEPETIZER_IOS&u=27e73f129dc6a90ed0b2da2cb1c8b3d14829761d&v=3.3.0&vc=2412"
// 关注页面网址
let SubscriptionUrlString : String = "https://baobab.kaiyanapp.com/api/v4/tabs/follow?_s=945f7de56decaa6dc22ecf8556e71c25&f=iphone&net=wifi&p_product=EYEPETIZER_IOS&u=27e73f129dc6a90ed0b2da2cb1c8b3d14829761d&v=3.4.1&vc=2602"
// 全部作者页面
let AuthorUrlString : String = "https://baobab.kaiyanapp.com/api/v4/pgcs/all"
// 全部分类页面
let AllCategoriesUrlString : String = "https://baobab.kaiyanapp.com/api/v4/categories/all"
// 搜索页面的热词
let HotWordsUrlString : String  = "https://baobab.kaiyanapp.com/api/v3/queries/hot?"



// MARK:- 通知
let AnimationViewScrollCurrentNote : String = "AnimationViewScrollCurrentNote"
let CorrelationCollectionViewCellDidSeleted : String = "CorrelationCollectionViewCellDidSeleted"
let TabBarButtonDidRepeatClickNotification : String = "TWTabBarButtonDidRepeatClickNotification"
let AnimationHeaderViewShowMoreButtonClickNotification : String = "AnimationHeaderViewShowMoreButtonClickNotification"
let DetailCollectionViewCellDidClickNotification : String = "DetailCollectionViewCellDidClickNotification"







/*
 tag的使用
 TWShareViewController 中  五个分享按钮使用了  1111 - 1116
 
 
 */



















